package com.woolink.per.sys.resource.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Resource entity. @author MyEclipse Persistence Tools
 */

public class Resource implements java.io.Serializable
{
    
    // Fields    
    
    private Integer resourceId;
    
    private String resourceName;
    
    private String resourceDesc;
    
    private String resourceType;
    
    private String resourceUrl;
    
    private Integer priority;
    
    private Integer enabled;
    
    private Set authorityResources = new HashSet(0);
    
    // Constructors
    
    /** default constructor */
    public Resource()
    {
    }
    
    /** full constructor */
    public Resource(String resourceName, String resourceDesc,
            String resourceType, String resourceUrl, Integer priority,
            Integer enabled, Set authorityResources)
    {
        this.resourceName = resourceName;
        this.resourceDesc = resourceDesc;
        this.resourceType = resourceType;
        this.resourceUrl = resourceUrl;
        this.priority = priority;
        this.enabled = enabled;
        this.authorityResources = authorityResources;
    }
    
    // Property accessors
    
    public Integer getResourceId()
    {
        return this.resourceId;
    }
    
    public void setResourceId(Integer resourceId)
    {
        this.resourceId = resourceId;
    }
    
    public String getResourceName()
    {
        return this.resourceName;
    }
    
    public void setResourceName(String resourceName)
    {
        this.resourceName = resourceName;
    }
    
    public String getResourceDesc()
    {
        return this.resourceDesc;
    }
    
    public void setResourceDesc(String resourceDesc)
    {
        this.resourceDesc = resourceDesc;
    }
    
    public String getResourceType()
    {
        return this.resourceType;
    }
    
    public void setResourceType(String resourceType)
    {
        this.resourceType = resourceType;
    }
    
    public String getResourceUrl()
    {
        return this.resourceUrl;
    }
    
    public void setResourceUrl(String resourceUrl)
    {
        this.resourceUrl = resourceUrl;
    }
    
    public Integer getPriority()
    {
        return this.priority;
    }
    
    public void setPriority(Integer priority)
    {
        this.priority = priority;
    }
    
    public Integer getEnabled()
    {
        return this.enabled;
    }
    
    public void setEnabled(Integer enabled)
    {
        this.enabled = enabled;
    }
    
    public Set getAuthorityResources()
    {
        return this.authorityResources;
    }
    
    public void setAuthorityResources(Set authorityResources)
    {
        this.authorityResources = authorityResources;
    }
    
}